package com.wbk.lotterysystemuserservice.controller.auth;

import com.wbk.lotterysystemuserservice.commons.bo.UserExtBO;
import com.wbk.lotterysystemuserservice.controller.auth.biz.UserExtBiz;

import io.swagger.annotations.Api;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import result.Result;

import javax.validation.Valid;

@Api
@RestController
@RequestMapping("/user/api/auth/userext")
public class UserExtController {

    @Autowired
    UserExtBiz userExtBiz;

    @ApiOperation(value = "修改用户个人信息接口", notes = "修改用户个人信息")
    @PostMapping("/save")
    public Result save(@Valid @RequestBody UserExtBO userExtBO) {
        return userExtBiz.save(userExtBO);
    }
}
